﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns:local="clr-namespace:iFinance.Modules.Authorization" 
    xmlns:Infrastructure_Services="clr-namespace:iFinance.Infrastructure.Services;assembly=iFinance.Infrastructure.SL"
    mc:Ignorable="d" x:Class="iFinance.Modules.Authorization.LoginView"
    d:DesignWidth="304" d:DesignHeight="195">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/iFinance.Modules.Authorization.SL;component/TempResourceDictionary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="{StaticResource BGBrush}" Infrastructure_Services:ButtonServices.DefaultButton="{Binding ElementName=btnLogin}">
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="230" Height="130">
            <TextBlock Margin="0,3,0,0" TextWrapping="Wrap" Text="帐号：" VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <TextBox x:Name="txtUserID" Height="23" Margin="37,0,55,0" TextWrapping="Wrap" VerticalAlignment="Top" TabIndex="1" Text="{Binding UserID,Mode=TwoWay}"/>
            <TextBlock Margin="0,40,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" VerticalAlignment="Top"><Run Text="密码"/><Run Text="："/></TextBlock>
            <PasswordBox x:Name="pwd" Margin="37,36,55,0" Height="23" VerticalAlignment="Top" TabIndex="2" Password="{Binding Password,Mode=TwoWay}"/>
            <CheckBox Content="记住密码" Margin="52,0,106,40" VerticalAlignment="Bottom" TabIndex="3" />
            <HyperlinkButton x:Name="hbtnRegister" Content="注册账号" HorizontalAlignment="Right" Margin="0,4,0,0" VerticalAlignment="Top" Foreground="#FF0088FF" TabIndex="6"/>
            <CheckBox Content="自动登录" Margin="0,0,24,40" VerticalAlignment="Bottom" HorizontalAlignment="Right" TabIndex="4"/>
            <HyperlinkButton x:Name="hbtnForgetPwd" Content="找回密码" HorizontalAlignment="Right" Margin="0,40,0,0" VerticalAlignment="Top" Foreground="#FF0087FF" TabIndex="7"/>
            <Button x:Name="btnLogin" Content="登录" HorizontalAlignment="Right" Height="24" Margin="0,0,1,0" VerticalAlignment="Bottom" Width="80" TabIndex="5" Command="{Binding LoginCommand}"/>
        </Grid>
    </Grid>
</UserControl>
